---
layout: "default"
title: "ErrorType"
description: "Swift documentation for 'ErrorType': A type representing an error value that can be thrown."
keywords: "ErrorType,protocol,swift,documentation"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">protocol ErrorType</code></div>

<div class="discussion comment">
    <p>A type representing an error value that can be thrown.</p>
</div>

<table class="standard">



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









<h3>Default Implementations</h3>












